#include <iostream>
using namespace std;

pair<string, int> getPreson()
{
    return make_pair("name1", 100);
}

int main(void)
{
    // 原型: pair<T1, T2> p1(var1, var2)
    pair<string, string> author("name1", "book1");
    pair<string, int> book("book1", 100);

    // 延迟初始化: 成员变量first, second
    pair<int, int> book2;
    book2.first = 100;
    book2.second = 200;

    // make_pair 创建新pair对象
    int a = 3;
    int b = 4;
    pair<int, int> book3 = make_pair(a, b);

    return 0;
}